from typing import Optional
from datetime import datetime
from pydantic import BaseModel

class PassengerBase(BaseModel):
    Name: str
    BirthdayDTS: datetime
    CertificateType: str
    CertificateNo: str
    CustomerProfileId: int

    class Config:
        from_attributes = True

class PassengerCreate(PassengerBase):
    pass

class Passenger(PassengerBase):
    PassengerId: int
    WorkAreaId: int

    class Config:
        from_attributes = True 